package com.ruoyi.sensitives.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sensitives.mapper.SensitivesMapper;
import com.ruoyi.sensitives.domain.Sensitives;
import com.ruoyi.sensitives.service.ISensitivesService;

/**
 * 敏感词Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-12
 */
@Service
public class SensitivesServiceImpl implements ISensitivesService 
{
    @Autowired
    private SensitivesMapper sensitivesMapper;

    /**
     * 查询敏感词
     * 
     * @param sensitiveid 敏感词主键
     * @return 敏感词
     */
    @Override
    public Sensitives selectSensitivesBySensitiveid(Long sensitiveid)
    {
        return sensitivesMapper.selectSensitivesBySensitiveid(sensitiveid);
    }

    /**
     * 查询敏感词列表
     * 
     * @param sensitives 敏感词
     * @return 敏感词
     */
    @Override
    public List<Sensitives> selectSensitivesList(Sensitives sensitives)
    {
        return sensitivesMapper.selectSensitivesList(sensitives);
    }

    /**
     * 新增敏感词
     * 
     * @param sensitives 敏感词
     * @return 结果
     */
    @Override
    public int insertSensitives(Sensitives sensitives)
    {
        return sensitivesMapper.insertSensitives(sensitives);
    }

    /**
     * 修改敏感词
     * 
     * @param sensitives 敏感词
     * @return 结果
     */
    @Override
    public int updateSensitives(Sensitives sensitives)
    {
        return sensitivesMapper.updateSensitives(sensitives);
    }

    /**
     * 批量删除敏感词
     * 
     * @param sensitiveids 需要删除的敏感词主键
     * @return 结果
     */
    @Override
    public int deleteSensitivesBySensitiveids(Long[] sensitiveids)
    {
        return sensitivesMapper.deleteSensitivesBySensitiveids(sensitiveids);
    }

    /**
     * 删除敏感词信息
     * 
     * @param sensitiveid 敏感词主键
     * @return 结果
     */
    @Override
    public int deleteSensitivesBySensitiveid(Long sensitiveid)
    {
        return sensitivesMapper.deleteSensitivesBySensitiveid(sensitiveid);
    }
}
